<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Bai 1.3</title>

<style type="text/css">
<!--
table {
	text-align: center;
}
-->
</style>
</head>

<body>
<?php 
	if(isset($_POST["ten"]))
	{
		$ten=$_POST["ten"];
		$cauChao="Chào bạn ".$ten;
	}
?>
<form id="form1" name="form1" method="post" action="">
  <table width="350" border="1" align="center" cellpadding="1" cellspacing="1">
    <tr style="{font-family: Verdana, Geneva, sans-serif; font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif; font-family: Verdana, Geneva, sans-serif;" bgcolor="#0066FF">
      <td>IN LỜI CHÀO</td>
    </tr>
    <tr align="left" bgcolor="#99FF99">
   	  <td><span style="font-family: 'Courier New', Courier, monospace; font-size: 12px;">Họ tên của bạn</span>   	    <input name="ten" type="text" id="ten" value="<?php echo $ten;?>" />
	  </td>
    </tr>
    <tr bgcolor="#99FF99">
      <td><label><?php echo $cauChao;?></label>&nbsp;</td>
    </tr>
    <tr bgcolor="#99FF99">
      <td><input type="submit" name="submit" id="submit" value="Chào" /></td>
    </tr>
  </table>
</form>
</body>
</html>